

package jetbrains.buildServer.server.rest.service.versionedSettings;

import jetbrains.buildServer.server.rest.jersey.provider.annotated.JerseyInjectable;
import jetbrains.buildServer.server.rest.model.Fields;
import jetbrains.buildServer.server.rest.model.versionedSettings.VersionedSettingsConfig;
import jetbrains.buildServer.serverSide.SProject;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@JerseyInjectable
public interface VersionedSettingsConfigsService {

  @Nullable
  VersionedSettingsConfig getVersionedSettingsConfig(@NotNull SProject project, @NotNull Fields fields);

  void setVersionedSettingsConfig(@NotNull SProject project, @NotNull VersionedSettingsConfig versionedSettingsConfig);

  void checkEnabled(@NotNull SProject project);

}